<div class="act">
	<? $this->widget('zii.widgets.CBreadcrumbs', array(
		'links'=>$this->bread,
		'htmlOptions'=>array('class'=>'act_str'),
		'separator'=>' &gt; '
	)); ?>
	<div class="act_title"><?=$title?></div>
	<div class="act_items_body">
		<?
		$date=date('Y-m-d');
		foreach($actions as $action): ?>
		    <div class="act_items">
			<div class="act_img"><img src="<?=$action->img?>"></div>
			<div class="act_date"><?=Yii::app()->dateFormatter->format('d MMMM', $action->date_start)?> — <?=Yii::app()->dateFormatter->format('d MMMM yyyy', $action->date_end)?></div>
				<? if ($date>$action->date_end): ?>
					<div class="act_end">Акция завершена</div>
				<? endif ?>
			<div class="clear"></div>
			<div class="act_title"><a href="<?= CHtml::normalizeUrl(array('site/ActionView', 'id'=>$action->id)) ?>"><?=$action->title?></a></div>
			<div class="act_text"><?=$action->small?></div>
			<div class="act_preview"><a href="<?= CHtml::normalizeUrl(array('site/ActionView', 'id'=>$action->id)) ?>">Подробнее</a></div>
		</div>
		<? endforeach; ?>
	</div>
	<div class="clear"></div>
	<div class="act_nav">
		<?$this->widget('CLinkPager', array(
			'header' => '',
			'firstPageLabel' => '<<',
			'prevPageLabel' => '<',
			'nextPageLabel' => '>',
			'lastPageLabel' => '>>',
			'pages' => $pages, // модель пагинации переданная во View
			'cssFile'=> false,
		));?>
	</div>
	<!--/Акции--->
</div>